<template>
  <Page class="demo-http demo-page">
    <div class="btn-wrap">
      <button class="btn" @click="httpTest">
        测试获取客户列表
      </button>
      {{ ip }}
    </div>
  </Page>
</template>

<script>
export default {
  name: "demoHttp",
  data() {
    return {
      ip: ""
    };
  },
  computed: {},
  created() {},
  methods: {
    httpTest() {
      utils.http
        .post(interfaces.global.test, {
          queryCustomer: {
            indexOfPage: 1,
            numPerPage: 20,
            agentNum: "1003750A61",
            name: "",
            mobile: "",
            birthDateStart: "",
            birthDateEnd: "",
            customerType: "001"
          }
        })
        .then(() => {
          utils.ui.tips("请求成功");
        });
    }
  }
};
</script>

<style lang="scss" scoped>
@import "@/assets/css/demo/index.scss";
</style>
